JBoss Community Archive (Read Only)

Arquillian

JBoss AS 6.0 - Managed

A DeployableContainer implementation that can run and connect to a remote(different JVM, same machine) JBoss AS 6.0 instance. This implementation has lifecycle support, so the container will be started and stopped as part of the test run.

Container Injection Support Matrix

@EJB

@EJB (no-interface)

@Inject (CDI)

@Inject (MC)

@PersistenceContext @PersistenceUnit

images/author/download/attachments/917707/fact_good.png

images/author/download/attachments/917707/fact_good.png

images/author/download/attachments/917707/fact_good.png

 

 

Configuration

Default Protocol: Servlet 3.0

Container Configuration Options

Name

Type

Default

Description

profileName

String

default

ProfileService profileKey. Used to load the correct profile into the DeploymentManager.

bindAddress

String

localhost

The Address the server should bind to.

httpPort

int

8080

If useRmiPortForAliveCheck is false, this port is used to check if the server is running.

rmiPort

int

1099

Used by the ServerManager to communicate with the server.

jbossHome

String

$JBOSS_HOME

The JBoss configuration to start.

javaHome

String

$JAVA_HOME

The Java runtime to use to start the server.

javaVmArguments

String

-Xmx512m -XX:MaxPermSize=128m

JVM arguments used to start the server.

useRmiPortForAliveCheck

boolean

false

If the ServerManager should use the RMI port when checking if the server is up.

startupTimeoutInSeconds

int

120

Time to wait before throwing Exception on server startup.

shutdownTimeoutInSeconds

int

45

Time to wait before throwing Exception on server shutdown.

Example of Maven profile setup

<profile>
	<id>jbossas-managed-6</id>
	<dependencies>
		<dependency>
			<groupId>org.jboss.arquillian.container</groupId>
			<artifactId>arquillian-jbossas-managed-6</artifactId>
			<version>1.0.0-SNAPSHOT</version>
		</dependency>
        <dependency>
            <groupId>org.jboss.jbossas</groupId>
            <artifactId>jboss-server-manager</artifactId>
            <version>1.0.3.GA</version>
        </dependency>
		<dependency>
			<groupId>org.jboss.jbossas</groupId>
			<artifactId>jboss-as-client</artifactId>
			<version>6.0.0.Final</version>
			<type>pom</type>
		</dependency>
	</dependencies>
</profile>
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 09:40:45 UTC, last content change 2011-04-28 13:39:23 UTC.